<!doctype html>
<html>
<head>
<link type="text/css" rel="stylesheet" href="../stylesheet.css"/>
</head>
<body>
    <?php
    session_start();
    if(isset($_SESSION['moneyReturned']) && $_SESSION['moneyReturned'] != 0)
    {
        echo "<h2>" . "Thank You, Your Order Will Be Out Momentarily" . "</h2>";
        echo "<br>" . "<h3>" . "Please take your change : " . "$" . $_SESSION['moneyReturned'] . "</h3>";
        echo "<br>" . "<h3>" . "Receipt Printing..." . "</h3>";
           ?>
        <form method = "POST" action = 'receipt.php'>
                 <input type="submit" name="receipt1"  value="View Receipt">

        </form>
      
        <?php
        $_SESSION['moneyReturned'] = 0;
    }
    header( "refresh:6;url=../index.html" );
    if(isset($_SESSION['cardNum']) && $_SESSION['cardNum']!=0)
    {
        echo "<h2>" . "Thank You, Your Order Will Be Out Momentarily" . "</h2>";
        echo "<br>" . "<h3>" . "Receipt Printing..." . "</h3>";
        ?>
        <form type = 'POST' action = 'receipt.php'>
                 <input type="submit" name="receipt"  value="View Receipt">

        </form>  
       
    <?php
        $_SESSION['cardNum'] = 0;
     
    }
    ?>
  
</body>
</html>
